import request from '@/utils/request'

// 查询学生-企业关联列表
export function listStudent_post(query) {
  return request({
    url: '/cms/student_post/list',
    method: 'get',
    params: query
  })
}

// 查询学生-企业关联详细
export function getStudent_post(id) {
  return request({
    url: '/cms/student_post/' + id,
    method: 'get'
  })
}

// 新增学生-企业关联
export function addStudent_post(data) {
  return request({
    url: '/cms/student_post',
    method: 'post',
    data: data
  })
}

// 修改学生-企业关联
export function updateStudent_post(data) {
  return request({
    url: '/cms/student_post',
    method: 'put',
    data: data
  })
}

// 删除学生-企业关联
export function delStudent_post(id) {
  return request({
    url: '/cms/student_post/' + id,
    method: 'delete'
  })
}

// 学生投递简历
export function addPost2(data){
  return request({
    url: '/cms/student_post/add2',
    method: 'post',
    data:data
  })
}
